//part1:C16:ex16.30.cpp
#include <iostream>
#include <string>
#include "sp_Blob.h"
using std::string;
using std::cout;
using std::endl;

int main(void)
{
    Blob<string> bl;
    cout << bl.size() << endl;
    {
        Blob<string> b2 = {"a", "an", "the"};
        bl = b2;
        b2.push_back("about");
        cout << bl.size() << " " << b2.size() << endl;
    }

    cout << bl.size() << endl;
    for(size_t i = 0; i < bl.size(); i++)
    {
        cout << bl.at(i) << " ";
    }
    cout << endl << endl;

    UP<int> u1(nw int(42));
    cout << *u1 << endl;
    UP<int> u2(u1.release());
    cout << *u2 << endl;
    
    return 0;
}
